package com.atguigu.gmall.user.service;

import com.atguigu.gmall.user.model.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 用户表 业务接口类
 * @author atguigu
 * @since 2023-08-07
 */
public interface UserInfoService extends IService<UserInfo> {

    /**
     * 用户登录
     *
     * @param userInfo
     * @param request
     * @return
     */
    Map<String, Object> login(UserInfo userInfo, HttpServletRequest request);

    /**
     * 用户退出
     * @param token
     */
    void logout(String token);
}
